# -*- coding: UTF-8 -*- #
"""
-------真正的勇士， 敢于直面惨淡的Warning、 敢于正视淋漓的Error-----
@author : 贾鹏博
@file : main_page.py
@time : 2022/6/15 22:13
"""

from apptest.QiYeWeiXin_PO.base.base_page import BagePage
from apptest.QiYeWeiXin_PO.page.address_page import AddressListPage
from appium.webdriver.common.appiumby import AppiumBy


class MainPage(BagePage):

    def goto_addresslist(self):
        # 点击通讯录
        self.find_and_click(AppiumBy.XPATH, "//*[@text='通讯录']")
        return AddressListPage(self.driver)
